/*
 * @Author: whr2349 378237242@qq.com
 * @Date: 2025-08-06 13:44:54
 * @LastEditors: whr2349 378237242@qq.com
 * @LastEditTime: 2025-08-14 15:44:53
 * @FilePath: \taluo\src\router\index.js
 * @Description:
 *
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved.
 */
/*
 * @Author: whr2349 378237242@qq.com
 * @Date: 2025-08-06 13:44:54
 * @LastEditors: whr2349 378237242@qq.com
 * @LastEditTime: 2025-08-14 15:39:49
 * @FilePath: \taluo\src\router\index.js
 * @Description:
 *
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved.
 */
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/taluo/draw',
      component: () => import('../pages/layout.vue'),
      children: [
        {
          // 抽牌页面
          path: 'taluo/draw',
          name: 'draw',
          component: () => import('../pages/taluo/draw.vue'),
        },
      ],
    },
  ],
})

export default router
